﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using House.Server.Dto;
using House.Server.Repository;
namespace House.Server.Service
{
    /// <summary>
    /// 员工表BLL层
    /// </summary>
    public class System_StaffService : BaseService<System_StaffRepository,Staff>
    {
        System_StaffRepository dal = new System_StaffRepository();
        /// <summary>
        ///左查询
        /// </summary>
        /// <returns></returns>
        public List<System_StafforRoleorDepartment> show(int del)
        {
            return dal.show(del);
        }

        public List<System_StaffState> StatuffStateShow()
        {
            return dal.StaffStateShow();
        }
             /// <summary>
        /// 登录
        /// </summary>
        /// <param name="name">账号</param>
        /// <param name="pwd">密码</param>
        /// <returns></returns>
        public int GetStaffLogin(string name, string pwd)
        {
            return dal.GetStaffLogin(name, pwd);
        }
    }
}
